import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
  {
    path: "/",
    name: "bleDemo",
    component: () => import("../page/bleDemo.vue"),
    meta: {
      keepAlive: true, // 需要缓存
      hideSystemNav: false,
    },
  },
  //EQ调节页面
  {
    path: "/eqadjust",
    name: "eqadjust",
    component: () => import("../page/eqadjust.vue"),
    meta: {
      keepAlive: false, // 需要缓存
      hideSystemNav: false,
    }
  },
  //混音调节  MixingSet
  {
    path: "/MixingSet",
    name: "MixingSet",
    component: () => import("../page/MixingSet.vue"),
    meta: {
      keepAlive: false, // 需要缓存
      hideSystemNav: false,
    }
  },
  //声场调节
  {
    path: "/soundField",
    name: "soundField",
    component: () => import("../page/soundField.vue"),
    meta: {
      keepAlive: false, // 需要缓存
      hideSystemNav: false,
    }
  },
  //喇叭设置SpeakerSetup
  {
    path: "/SpeakerSetup",
    name: "SpeakerSetup",
    component: () => import("../page/SpeakerSetup.vue"),
    meta: {
      keepAlive: false, // 需要缓存
      hideSystemNav: false,
    }
  },
  {
    path: "/wifiDemo",
    name: "wifiDemo",
    component: () => import("../page/wifiDemo.vue"),
    meta: {
      keepAlive: false, // 需要缓存
      hideSystemNav: false,
    }
  },
  {
    path: "/timePickerDemo",
    name: "timePickerDemo",
    component: () => import("../page/timePickerDemo.vue"),
    meta: {
      keepAlive: true, // 需要缓存
      hideSystemNav: false,
    }
  }, {
    path: "/cellDemo",
    name: "cellDemo",
    component: () => import("../page/cellDemo.vue"),
    meta: {
      keepAlive: true, // 需要缓存
      hideSystemNav: false,
    },
  }
];

const router = new VueRouter({
  routes,
});

export default router;
